package org.ghost.akka.client;

/**
 * AKKA 集群配置
 */
public class AkkaClusterConfig {
    private String masterIp = "127.0.0.1";
    private int taskDispatcherPort = 51620;
    private int seedPortFirst = 2551;
    private int seedPortSecond = 2552;
    private String clusterSystem = "AkkaClusterSystem";
    private String akkaSchema = "akka.tcp://";
    private String routerPath = "/user/frontend";

    public String getMasterIp() {
        return masterIp;
    }

    public void setMasterIp(String masterIp) {
        this.masterIp = masterIp;
    }

    public int getTaskDispatcherPort() {
        return taskDispatcherPort;
    }

    public void setTaskDispatcherPort(int taskDispatcherPort) {
        this.taskDispatcherPort = taskDispatcherPort;
    }

    public int getSeedPortFirst() {
        return seedPortFirst;
    }

    public void setSeedPortFirst(int seedPortFirst) {
        this.seedPortFirst = seedPortFirst;
    }

    public int getSeedPortSecond() {
        return seedPortSecond;
    }

    public void setSeedPortSecond(int seedPortSecond) {
        this.seedPortSecond = seedPortSecond;
    }

    public String getClusterSystem() {
        return clusterSystem;
    }

    public void setClusterSystem(String clusterSystem) {
        this.clusterSystem = clusterSystem;
    }

    public String getAkkaSchema() {
        return akkaSchema;
    }

    public void setAkkaSchema(String akkaSchema) {
        this.akkaSchema = akkaSchema;
    }

    public String getRouterPath() {
        return routerPath;
    }

    public void setRouterPath(String routerPath) {
        this.routerPath = routerPath;
    }

    public String buildRemoteUri() {
        return akkaSchema + clusterSystem + "@" + masterIp + ":"
                + taskDispatcherPort + routerPath;
    }

}
